<?php

session_start();

require_once '../../../serverResources/includes/classes/QPreference.php';
require_once '../../../serverResources/includes/db/ConnDBUser.php';
include_once '../others/refreshSessionTime.php';

if($_POST['qID'] != ""){

	$pref=new QPreference($_POST['preference'], $_POST['qSource'], $_POST['qID'], $_SESSION['userID']);
	$added=$pref->storePreference();
	unset($pref);
	echo $added;
}
